﻿@using IdentityServer.CustomServices
@model Domain.Security.AuthorizationRule
@inject IRequestHandlerInfo RequestHandlerInfo

@{
    ViewData["Title"] = "Details";
}

<h2>Details</h2>

<div>
    <h4>RequestAuthorizationRule</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            链接
        </dt>
        <dd>
            @RequestHandlerInfo.GetRequestHandlerUrlInfos().Single(h=>h.Key.ToString() == Model.HandlerMethodSignature && h.Key.DeclaringType.FullName == Model.TypeFullName).Value
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.HandlerMethodSignature)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.HandlerMethodSignature)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.TypeFullName)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.TypeFullName)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.IdentificationKey)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.IdentificationKey)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.AuthorizationRuleConfigJson)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.AuthorizationRuleConfigJson)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.Remark)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Remark)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.OrderNumber)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.OrderNumber)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.RowVersion)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.RowVersion)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.IsEnable)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.IsEnable)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.IsDeleted)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.IsDeleted)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.CreationTime)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.CreationTime)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.LastModificationTime)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.LastModificationTime)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.CreationUser)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.CreationUser.Id)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.LastModificationUser)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.LastModificationUser.Id)
        </dd>
    </dl>
</div>
<div>
    <a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
    <a asp-action="Index">Back to List</a>
</div>
